package kordegi.forumsystem.redis;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.UnknownSessionException;
import org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO;
import org.springframework.context.annotation.Bean;

import java.io.Serializable;

/**
 * @author kordegi
 * @date 2022.05.04 22:04
 * @Description
 */

public class RedisSessionDAO extends EnterpriseCacheSessionDAO {
    /**
     * @param session
     * @throws UnknownSessionException
     */
    @Override
    public void update(Session session) throws UnknownSessionException {
        super.update(session);
    }

    /**
     * @param session
     */
    @Override
    public void delete(Session session) {
        super.delete(session);
    }

    /**
     * @param session
     * @return
     */
    @Override
    protected Serializable doCreate(Session session) {
        return super.doCreate(session);
    }
}
